<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ taglib prefix="s" uri="/struts-tags"%>
  <%@ page import="logic.*"%>


<%
// w celu poprawnie dzialajacej sesji:
response.setHeader("Cache-Control","no-store"); 
response.setHeader("Pragma","no-cache"); 
response.setDateHeader ("Expires", 0); 

String myname =  (String)session.getAttribute("maly"); //pobieramy sesje (login)


%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Zarzadzanie magazynem</title>
	<link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>
	<script type="text/javascript" src="js/skrypt.js"></script>
	<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="glowne">
	<div id="baner">
		<a href="index.jsp"><div class="header"></div></a>
	</div>
	

		<% 
	    if(myname!=null)
        {
           out.println("<b>"+ myname+"</b> wylogowany, <a href=\"index.jsp\">back</a>");
           session.removeAttribute("maly");
            
        }
     else 
         {
         out.println("Nie jestes aktualnie zalogowany <a href=\"index.jsp\">back</a>");
     }
		%>
							
		

		
</div>

</body>
</html>